


//
//  BackButton.m
//  XhlTrip
//
//  Created by dlios on 15/9/30.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "BackButton.h"

@implementation BackButton

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        
        self.backImage = [[UIImageView alloc]init];
        
        [self addSubview:_backImage];
        
        self.backTitle = [[UILabel alloc]init];
        _backTitle.textColor = [UIColor whiteColor];
        [self addSubview:_backTitle];
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.backImage.frame = CGRectMake(0, 0, 30, 30);
    self.backTitle.frame = CGRectMake(30, 0, 100, 30);
    
}


@end
